﻿using System;
using System.Collections.Generic;

using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ProjectQuaDep.Admin
{
    public partial class Login : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void cmdLogin_Click(object sender, EventArgs e)
        {
            string acc = txtAcc.Text;
            string pass = txtPass.Text;
            if (acc == "admin" && pass == "admin123!")
            {
                Session["taikhoanadmin"] = acc;
                Response.Redirect("/Admin/AwardsImages/Images.aspx");
            }
            else
            {
                Response.Write("<script>alert('Đăng nhập thất bại!');</script>");
            }
        }
    }
}
